import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import View from '../views/view.vue'
import Login from '../views/login/index.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/view',
    name: 'View',
    component: View
  },
  {
    path: '/editor',
    name: 'Editor',
    component: index
  }
]

const router = new VueRouter({
  routes
})

export default router
